import { RESPONSE } from "../Types/Api/base"
import { InterView, InterViewData } from "../Types/Api/interView"
import { request } from "./base"

enum API {
  GET_ALL_INTERVIEW = "/api/interview/interviewTitle",
  GET_INTERVIEW_BY_ID = "/api/interview/",
}

export const reqGetAllInterView = () =>
  request.get<null, RESPONSE<InterView[][]>>(API.GET_ALL_INTERVIEW)

export const reqGetInterviewById = (id: string) =>
  request.get<null, RESPONSE<InterViewData>>(API.GET_INTERVIEW_BY_ID + id)
